<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文档生成 - 大模型文档智能生成平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        /* [跟上面页面完全相同的CSS，为了独立运行，这里全部复制一份] */
        :root {
            --primary-color: #006838;
            --accent-color: #B58E55;
            --bg-color: #f4f6f9;
            --text-color: #333;
            --border-color: #e0e0e0;
            --sidebar-width: 240px;
            --header-height: 60px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 14px;
        }

        .app-container { display: flex; height: 100vh; }
        .sidebar { width: var(--sidebar-width); background-color: #ffffff; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
        .sidebar-header { display: flex; align-items: center; justify-content: center; padding: 0 15px; height: var(--header-height); border-bottom: 1px solid var(--border-color); }
        .logo { height: 35px; margin-right: 10px; }
        .sidebar-header h1 { font-size: 16px; font-weight: 600; color: var(--primary-color); white-space: nowrap; }
        .sidebar-nav { flex-grow: 1; padding: 20px 0; }
        .sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
        .sidebar-nav li a { display: flex; align-items: center; padding: 12px 20px; color: #555; text-decoration: none; transition: all 0.2s; font-weight: 500; }
        .sidebar-nav li a:hover { background-color: #f0f7f2; color: var(--primary-color); }
        .sidebar-nav li a.active { background-color: var(--primary-color); color: white; border-right: 4px solid var(--accent-color); }
        .sidebar-nav li a .fa-fw { margin-right: 15px; width: 20px; text-align: center; }
        .main-wrapper { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
        .header { height: var(--header-height); background-color: #fff; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: flex-end; padding: 0 30px; }
        .header-actions { display: flex; align-items: center; gap: 25px; }
        .header-actions .icon-btn { font-size: 18px; color: #666; cursor: pointer; }
        .user-profile { display: flex; align-items: center; gap: 10px; }
        .user-profile img { width: 36px; height: 36px; border-radius: 50%; }
        .user-profile span { font-weight: 500; }
        .main-content { flex-grow: 1; padding: 30px; overflow-y: auto; }
        .btn { padding: 10px 20px; border-radius: 5px; border: 1px solid transparent; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
        .btn-primary { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
        .btn-primary:hover { background-color: #005a2f; }
        .btn-secondary { background-color: #f0f0f0; color: #555; border-color: #ccc; }
        .btn-secondary:hover { background-color: #e0e0e0; }

        /* Wizard Layout */
        .wizard-layout {
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 30px;
            height: calc(100vh - 120px);
        }
        .form-panel, .preview-panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 25px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .form-panel h3, .preview-panel h3 {
            margin-top: 0; font-size: 18px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px;
        }
        .form-content {
            overflow-y: auto;
            padding-right: 15px;
        }
        .form-group {
            margin-bottom: 18px;
        }
        .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 8px;
        }
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 14px;
            box-sizing: border-box;
        }
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        .preview-content {
            flex-grow: 1;
            background: #f8f9fa;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 20px;
            overflow-y: auto;
            font-family: 'Times New Roman', serif;
            line-height: 1.6;
        }
        .preview-actions {
            margin-top: 20px;
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }
        .generation-button-container {
            position: absolute;
            left: calc(var(--sidebar-width) + 400px + 15px);
            top: 50%;
            transform: translateY(-50%);
        }
        .btn-generate {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            font-size: 18px;
            flex-direction: column;
            line-height: 1.4;
            box-shadow: 0 5px 15px rgba(0, 104, 56, 0.4);
        }
        .btn-generate .fa-magic {
            font-size: 28px;
            margin-bottom: 5px;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- Sidebar -->
        <aside class="sidebar">
            <div class="sidebar-header">
                <img src="https://i.imgur.com/uTjxkMh.png" alt="Logo" class="logo">
                <h1>文档智能生成平台</h1>
            </div>
            <nav class="sidebar-nav">
                <ul>
                    <li><a href="#"><i class="fas fa-cog fa-fw"></i> 系统管理</a></li>
                    <li><a href="#"><i class="fas fa-database fa-fw"></i> 数据获取</a></li>
                    <li><a href="#"><i class="fas fa-file-alt fa-fw"></i> 模板管理</a></li>
                    <li><a href="#"><i class="fas fa-cogs fa-fw"></i> 内容配置</a></li>
                    <li><a href="#"><i class="fas fa-receipt fa-fw"></i> 流水解析</a></li>
                    <li><a href="#" class="active"><i class="fas fa-magic fa-fw"></i> 文档生成</a></li>
                </ul>
            </nav>
        </aside>

        <!-- Main Wrapper -->
        <div class="main-wrapper">
             <!-- Header -->
            <header class="header">
                 <div class="header-actions">
                    <i class="fas fa-bell icon-btn"></i>
                    <i class="fas fa-question-circle icon-btn"></i>
                    <div class="user-profile">
                        <img src="https://i.pravatar.cc/40?u=admin" alt="User Avatar">
                        <span>王经理</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                </div>
            </header>

            <!-- Main Content -->
            <main class="main-content" style="position: relative;">
                <div class="wizard-layout">
                    <!-- Left Panel: Form -->
                    <div class="form-panel">
                        <h3>填写业务数据</h3>
                        <div class="form-content">
                            <div class="form-group">
                                <label for="template">1. 选择模板</label>
                                <select id="template">
                                    <option>小微授信业务调查表</option>
                                    <option>个人贷款申请表</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="clientName">2. 客户名称</label>
                                <input type="text" id="clientName" value="XX科技有限公司">
                            </div>
                             <div class="form-group">
                                <label for="creditAmount">3. 申请金额 (万元)</label>
                                <input type="text" id="creditAmount" value="50">
                            </div>
                             <div class="form-group">
                                <label for="notes">4. 关键信息及备注</label>
                                <textarea id="notes">客户为高新技术企业，近三年营收增长稳定。本次贷款用于扩大生产线。已提供近6个月银行流水及去年审计报告。</textarea>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Right Panel: Preview -->
                    <div class="preview-panel">
                        <div style="display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px;">
                            <h3 style="border:none; margin:0; padding:0;">生成预览</h3>
                            <div class="preview-actions" style="margin: 0;">
                                <button class="btn btn-secondary"><i class="fas fa-pen-nib"></i> 内容润色</button>
                                <button class="btn btn-primary"><i class="fas fa-download"></i> 下载文档</button>
                            </div>
                        </div>

                        <div class="preview-content">
                            <h4>小微授信业务调查表</h4>
                            <p><strong>客户名称：</strong> XX科技有限公司</p>
                            <p><strong>申请授信金额：</strong> 50万元人民币</p>
                            <p><strong>业务概述：</strong></p>
                            <p>经初步调查，XX科技有限公司是一家经营状况良好的高新技术企业，近年来业务规模持续扩大，营收稳定增长。本次申请的50万元贷款，主要用于扩大现有生产线，以满足日益增长的市场需求。该企业已提交近六个月的银行流水记录以及上一年度的财务审计报告，材料齐全。建议进行下一步的深入尽职调查。</p>
                            <p>...</p>
                        </div>
                    </div>
                </div>
                <!-- Generation Button -->
                <div class="generation-button-container">
                    <button class="btn btn-primary btn-generate">
                        <i class="fas fa-magic"></i>
                        一键<br>生成
                    </button>
                </div>
            </main>
        </div>
    </div>
</body>
</html>
